<script type="text/javascript">
<!--
	var msg = '{$msg}';
	var id = '{$msgOne.id}';
	if(msg != ""){
		if(msg == '修改成功'){
			alert(msg);
			window.location.href = "/";
		}else{
			alert(msg);
			window.location.href = "/index/index/edit/id/"+id;
		}
	}
//-->
</script>
<div id="editdiv">
	<form action="/index/index/edit/" method="post" id="edit_form">
		<table>
			<thead>
				<tr>
					<td width="100px">留言ID</td>
					<td width="100px">留言姓名</td>
					<td>留言内容</td>
					<td>编辑</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td width="100px">{$msgOne.id}
						<input type="hidden" name="msg_id" id="msg_id" value="{$msgOne.id}" />
					</td>
					<td width="100px"><input size="10" type="text" name="msg_name" id="msg_name" value="{$msgOne.name}" /></td>
					<td><textarea name="msg_centent" id="msg_centent" cols="50" rows="1">{$msgOne.content}</textarea></td>
					<td><input type="submit" name="submit" value="保存" /></td>
				</tr>
			</tbody>
		</table>
	</form>
</div>